package com.xcity.pomelo.push;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.PomeloPacket;
import naga.x.net.impl.pomelo.protocol.Message;

import com.xcity.pomelo.PomeloRoute;

@PomeloMessage(type = Message.Type.PUSH, route = PomeloRoute.PUSH_CHAT)
public class ChatPush extends PomeloPacket {

	private String scope; // PUB:公聊; PRI:私聊; SYS:系统公告
	private long roleId; // 发送者id
	private String roleName;
	private String img;
	private String content;
	
	public ChatPush(String scope, long roleId, String roleName, String img, String content) {
		this.scope = scope;
		this.roleId = roleId;
		this.roleName = roleName;
		this.img = img;
		this.content = content;
	}

	public String getScope() {
		return scope;
	}

	public void setScope(String scope) {
		this.scope = scope;
	}

	public long getRoleId() {
		return roleId;
	}

	public void setRoleId(long roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

}
